package com.akuhome.resource.DO.need;

import com.akuhome.resource.enums.NeedStatus;

import java.sql.Timestamp;
import java.util.Date;
import java.util.Objects;

public class ClassroomNeedDetail {
    Integer id;
    //需求日期
    Date date;
    //需求时段(早中晚)
    String time;
    Integer classroomId;
    String other;
    Timestamp createTime;
    Timestamp updateTime;
    Integer classroomNeedId;

    public ClassroomNeedDetail() {
    }

    public ClassroomNeedDetail(Date date, String time) {
        this.date = date;
        this.time = time;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getClassroomNeedId() {
        return classroomNeedId;
    }

    public void setClassroomNeedId(Integer classroomNeedId) {
        this.classroomNeedId = classroomNeedId;
    }

    public Integer getClassroomId() {
        return classroomId;
    }

    public void setClassroomId(Integer classroomId) {
        this.classroomId = classroomId;
    }

    public String getOther() {
        return other;
    }

    public void setOther(String other) {
        this.other = other;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ClassroomNeedDetail that = (ClassroomNeedDetail) o;
        return Objects.equals(id, that.id);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id);
    }
}
